<?php
?>
<script type="text/javascript">
		$(document).ready(function() {	
			
			//menu etablissement
			var $idMaisonJeune = $('#idMaisonJeune');
			var $idKiosque = $('#idKiosque');
			var $idEspaceJeune = $('#idEspaceJeune');
			var $idCoinJeune = $('#idCoinJeune');
			var $affMaisonJeune = $('#affMaisonJeune');
			var $affKiosque = $('#affKiosque');
			var $affEspaceJeune = $('#affEspaceJeune');
			var $affCoinJeune = $('#affCoinJeune');
			var $idActiviteMj = $('#idActiviteMj');
			var $idActiviteK = $('#idActiviteK');
			var $idActiviteC = $('#idActiviteC');
			var $idActiviteE = $('#idActiviteE');
			var $idactJpe = $('#idactJpe');
			var $Canet = $('#Canet');
			var $idRecapActiviteMj = $('#idRecapActiviteMj');
			var $idRecapActiviteK = $('#idRecapActiviteK');
			var $idRecapActiviteEJ = $('#idRecapActiviteEJ');
			var $idRecapActiviteCJ = $('#idRecapActiviteCJ');
			var $idRecapActiviteTandeM = $('#idRecapActiviteTandeM');
			var $idRecapPerso = $('#idRecapPerso');
	
			//CCJ
			var $idajoutCCJ = $('#idajoutCCJ');
			var $idMembreCCJ = $('#idMembreCCJ');
			var $idlistCcj = $('#idlistCcj');
			var $idlistmembreCcj = $('#idlistmembreCcj');
			var $idRecapActiviteCCJ = $('#idRecapActiviteCCJ');
			
			//sensibilisation
			var $idsensibilisation = $('#idsensibilisation');

			//menu gerer les membres
			var $idAjoutMembre = $('#idAjoutMembre');
			var $idAjoutJpe = $('#idAjoutJpe');
			var $idAffichage = $('#idAffichageJ');
			var $idAffichageJPE = $('#idAffichageJPE');
			var $idrecherche = $('#idrecherche');

			
			//menu volet
			//menu SSRA
			var $idSanteSexuelle = $('#idSanteSexuelle');
			var $idaccesCSB = $('#idaccesCSB');
			var $idgrosseP = $('#idgrosseP');
			var $idAvortement = $('#idAvortement');
			var $idIst = $('#idIst');
			var $idDepistage = $('#idDepistage');
			var $idPF = $('#idPF');
			
			//menu alcoolisme et utilisation de la drogue
			var $idAlcoolisme = $('#idAlcoolisme');
			var $idAlcool = $('#idAlcool');
			var $idTabac = $('#idTabac');
			var $idDrogueUDI = $('#idDrogueUDI');
			
			//abandon scolaire
			var $idAbandonScolaire = $('#idAbandonScolaire');
			var $idListAbandonScolaire = $('#idListAbandonScolaire');
			
			//emploi
			var $idEmploi = $('#idEmploi');
			var $idRecapEmploi = $('#idRecapEmploi');

			//menu violence
			var $idViolencesexuelle = $('#idViolencesexuelle');
			var $idViolenceconjugale = $('#idViolenceconjugale');
			var $idViolencePhysique = $('#idViolencePhysique');

			//menu suivi
			var $idSuivi = $('#idSuivi');
			
			//menu formation
			var $idFormation = $('#idFormation');
			var $idaffichageFormation = $('#idaffichageFormation');
			
			//menu association
			var $idAssociation = $('#idAssociation');
			var $idAffichageAsc = $('#idAffichageAsc');
			var $idRecapActiviteAssoc = $('#idRecapActiviteAssoc');
			
			//Système
			var $moncompte =  $('#moncompte');
			var $idnotification =  $('#idnotification');
			//Maison des Jeunes
			$affMaisonJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listEtabl?type=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapActiviteMj.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=1&type_etab=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapPerso.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listPersonnel";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$affKiosque.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listEtabl?type=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapActiviteK.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=1&type_etab=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$affEspaceJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listEtabl?type=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			$idRecapActiviteEJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=1&type_etab=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$affCoinJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listEtabl?type=4";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapActiviteCJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=1&type_etab=4";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapActiviteTandeM.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=2&type_etab=0";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idMaisonJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutM";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			$idActiviteMj.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});

			$idActiviteK.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			$idActiviteC.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=4";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			$idActiviteE.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			//Kiosque
			$idKiosque.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutK";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//espace des jeunes
			$idEspaceJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutEJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//coin des jeunes
			$idCoinJeune.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutCJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//ajout membre ou jeune
			$idAjoutMembre.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//ajout JPE
			$idAjoutJpe.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutJPE";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//affichage
			$idAffichage.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listJeune";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			$idAffichageJPE.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listJPE";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			$idrecherche.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/recherche";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});


			
			//Sante Sexuelle
			$idSanteSexuelle.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutSSR";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//acces aux CSB
			$idaccesCSB.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//grossesse precoce
			$idgrosseP.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//avortement
			$idAvortement.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//IST
			$idIst.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=4";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//depistage
			$idDepistage.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=5";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//PF
			$idPF.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=1&sous_type_volet=6";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//Alcoolisme et utilisation de la drogue
			$idAlcoolisme.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutAUD";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//alcool
			$idAlcool.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=2&sous_type_volet=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//tabac
			$idTabac.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=2&sous_type_volet=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//drogue
			$idDrogueUDI.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=2&sous_type_volet=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//Abandon des etudes
			$idAbandonScolaire.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutAbandonS";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			$idListAbandonScolaire.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listAbandonScolaire";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
		
			//Emploi
			$idEmploi.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutE";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			$idRecapEmploi.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listEmploi";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//violence sexuelle
			$idViolencesexuelle.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=3&sous_type_volet=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//violence conjugale
			$idViolenceconjugale.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=3&sous_type_volet=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//violence Physique
			$idViolencePhysique.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutVolet?type_volet=3&sous_type_volet=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//suivi
			$idSuivi.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutSuivi";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//formation
			$idFormation.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutF";
					//$('#content1').load($url);
					//var $url = "<?php echo base_url();?>index.php/participant/listparticipant";				
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
					
			$idaffichageFormation.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listF";
					//$('#content1').load($url);
					//var $url = "<?php echo base_url();?>index.php/participant/listparticipant";				
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
						
		
			//association
			$idAssociation.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutAJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			$idAffichageAsc.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listAssociation";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});	
			$idRecapActiviteAssoc.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=4&type_etab=0";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			//sensibilisation
			$idsensibilisation.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutS";
					//$('#content1').load($url);
					//var $url = "<?php echo base_url();?>index.php/participant/listparticipant";				
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			
			//Système mon compte	
			$moncompte.on('click', function() {
					var $idlogin =  $('#idlogin');
				 	var $url = "<?php echo base_url();?>index.php/client/moncompte?idlogin="+$idlogin.val();
					
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					
					//$('#content1').load($url);
			});
			
			$idactJpe.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_tendM";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			$Canet.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activitecanet";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
				
			$idajoutCCJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutCCJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			$idMembreCCJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutmembreCCJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			$idlistCcj.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listCCJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});
			
			$idlistmembreCcj.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listMembreCCJ";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			var $idActiviteCCJ = $('#idActiviteCCJ');			
			$idActiviteCCJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=5";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			$idRecapActiviteCCJ.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listActivite_structure?type_activite=3&type_etab=0";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					//$('#content1').load($url);
			});

			var $idActiviteAssoc = $('#idActiviteAssoc');			
			$idActiviteAssoc.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/activite_structure?id=6";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});

			var $recapsexe = $('#recapsexe');			
			$recapsexe.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listVolet?type_volet=1";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});
			
			var $recatpalcolisme = $('#recatpalcolisme');			
			$recatpalcolisme.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listVolet?type_volet=2";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});

			var $recapviolence = $('#recapviolence');			
			$recapviolence.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/listVolet?type_volet=3";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});

			var $personnelle = $('#personnelle');			
			$personnelle.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/drj/ajoutPersonnel";
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
			});

		});
		
</script>
<script type="text/javascript">
		$(function(){
			$("#dropdown").juizDropDownMenu({
				'showEffect' : 'fade',
				'hideEffect' : 'slide'
			});
		});
</script>
